package cn.gson.fengboot.controller;

import cn.gson.fengboot.model.pojos.Ljianche;
import cn.gson.fengboot.model.pojos.Ljiaofu;
import cn.gson.fengboot.model.service.LjiaofuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@RequestMapping("/vue")
public class LjiaofuController {
    @Autowired
    LjiaofuService ljiaofuService;

    //查询交付
    @RequestMapping("/jiaofucx")
    @ResponseBody
    public List<Ljiaofu> jiaofucx(Integer jfbid){
        return ljiaofuService.jiaofucx(jfbid);
    }

    //新增
    @RequestMapping("/addjiaofu")
    @ResponseBody
    public  void addjianche(@RequestBody Ljiaofu ljiaofu){
        ljiaofuService.addjiaofu(ljiaofu);

    }
}
